class PoKerController
{
    constructor() {}

    static getNewPoKerCards()
    {
        let cardsList = [];
        let pokerNumber = [
            102,103,104,105,106,107,108,109,110,111,112,113,114,    //102 - 114 方块2 - A      x/100 = ? 花色  x%100 = ？ 数值大小
            202,203,204,205,206,207,208,209,210,211,212,213,214,    //202 - 214 梅花2 - A
            302,303,304,305,306,307,308,309,310,311,312,313,314,    //302 - 314 红桃2 - A
            402,403,404,405,406,407,408,409,410,411,412,413,414,    //402 - 414 黑桃2 - A
        ]
        for (let i = 0; i < pokerNumber.length; i++) {
            cardsList.push(pokerNumber[i]);
        }

        cardsList = cardsList.sort(()=>{
            return Math.random() * 2 - 1;
        })

        return cardsList;
    }

}

global.PSZServerMgr.PoKerMgr = PoKerController;
module.exports = PoKerController;


// let poker = PoKerController
// let tmpcardsList = poker.getNewPoKerCards();
// console.log(tmpcardsList);